<?php
    if (!defined('HPAPP')) die('No permission');
    // navigation website
    class routers
    {
        public function __construct(PDO $pdo) {
            $this->pdo = $pdo;
        }
    	function run()
    	{
            $modul = (isset($_REQUEST["mod"]) && $_REQUEST["mod"]!=""  )?$_REQUEST["mod"]:"mod_home"; // Ki?m tra bi?n $_GET['mod']
    		if( is_file(MODULE.DIRECTORY_SEPARATOR.$modul.DIRECTORY_SEPARATOR."$modul.php")){
    			require_once MODULE.DIRECTORY_SEPARATOR.$modul.DIRECTORY_SEPARATOR."$modul.php";
    		}else{
    			require_once MODULE.DIRECTORY_SEPARATOR."mod_home".DIRECTORY_SEPARATOR."mod_home.php";
    		}
    	}
    }
?>